package com.ruoyi.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行政区划管理对象 g_city_area
 * 
 * @author ruoyi
 * @date 2025-10-11
 */
public class GCityArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 区划编码 */
    @Excel(name = "区划编码")
    private String code;

    /** 区划名称 */
    @Excel(name = "区划名称")
    private String name;

    /** 上级区划编码 */
    @Excel(name = "上级区划编码")
    private String pId;

    /** 路径 */
    @Excel(name = "路径")
    private String namePath;

    /** 区划级别(0:未知,1:省级,2:市级,3:区县级,4:乡镇) */
    @Excel(name = "区划级别(0:未知,1:省级,2:市级,3:区县级,4:乡镇)")
    private String level;

    /** 删除标记(0:正常,1:删除) */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setpId(String pId) 
    {
        this.pId = pId;
    }

    public String getpId() 
    {
        return pId;
    }

    public void setNamePath(String namePath) 
    {
        this.namePath = namePath;
    }

    public String getNamePath() 
    {
        return namePath;
    }

    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("pId", getpId())
            .append("namePath", getNamePath())
            .append("level", getLevel())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
